package poubelle.css;

import poubelle.html.HTMLSpan;

public class CSSTemplate extends TCSS {

	private String color;
	private String size;
	private String style;
	
	public String getColor() {
		return (color != null) ? ("color:" + color + ";\n") : "";
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getSize() {
		return (size != null) ? ("font-size:" + size + ";\n") : "";
	}

	public void setSize(String size) {
		this.size = size;
	}
	
	public String getStyle() {
		return (style != null) ? (style + "\n") : "";
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public String getCSS(String nameClass) {
		if(getColor().length() != 0 || getSize().length() != 0 || getStyle().length() != 0)
			return nameClass + "{ \n" + getColor() + getSize() + getStyle() + "}\n";
		else 
			return "";
	}
}
